// 设置数据
import * as types from './mutations-types'
import {
  SET_APPOINT_REG_INFO,
  SET_AUTO_PREAPPOINT_REG_INFO,
  SET_BIZ_INFO,
  SET_BIZ_OPTIONS_INFO, SET_BIZ_PARAMS_INFO,
  SET_CARD_TYPE_INFO,
  SET_CTD_TIME_INFO, SET_CURRENT_SCHEDULE_INFO,
  SET_CURRENT_TIME_RANGE_INFO,
  SET_DATE_INFO,
  SET_DEPT_INFO,
  SET_DEPT_OPTIONS_INFO,
  SET_HOSP_AREA_INFO,
  SET_MESSAGE_INFO,
  SET_NUMBER_SCHEDULE_LIST_INFO,
  SET_OPTYPE_INFO,
  SET_PATIENT_INFO,
  SET_STEPS_INFO,
  SET_TAKE_NUMBER_INFO,
  SET_TEMPLATE_LIST_INFO,
  SET_TEMPLATE_LIST_PARAMS_INFO,
  SET_TIME_RANGE_LIST_INFO
} from "./mutations-types";

const mutations={
  [types.SET_BIZ_OPTIONS_INFO](state,data){
    state.bizOptions = data
  },
  [types.SET_BIZ_INFO](state,data){
    state.bizInfo = data
  },
  [types.SET_CTD_TIME_INFO](state,data){
    state.countdownTime = data
  },
  // 请求参数
  [types.SET_BIZ_PARAMS_INFO](state,data){
    state.bizParams = data
  },

  [types.SET_CARD_TYPE_INFO](state,data){
    state.cardTypeInfo = data
  },
  [types.SET_PATIENT_INFO](state,data){
    state.patientInfo = data
  },
  [types.SET_TAKE_NUMBER_INFO](state,data){
    state.takeNumberList = data
  },
  [types.SET_STEPS_INFO](state,data){
    state.steps = data
  },
  [types.SET_MESSAGE_INFO](state,data){
    state.messageInfo = data
  },
  [types.SET_WAIT_PayTHEFEES](state,data){
    state.WaitPaythefees = data
  },
  [types.SET_DRUG_INFORMATION_LIST](state,data){
    state.setDrugInformationList = data
  },
  [types.SET_ITEM_LIST](state,data){
    state.ItemList = data
  },
  [types.SET_INPATIENT_INFORMATION](state,data){
    state.inpatientInformation = data
  },
  [types.SET_ONE_DAY_HOSPITALIZATION_LIST](state,data){
    state.oneDayHospitalizationList  = data
  },
  [types.SET_OPTYPE_INFO](state,data){
    state.OPTypeInfo = data
  },
  [types.SET_DEPT_OPTIONS_INFO](state,data){
    state.deptOptions = data
  },
  [types.SET_NUMBER_SCHEDULE_LIST_INFO](state,data){
    state.DrScheduleList = data
  },
  [types.SET_DEPT_INFO](state,data){
    state.deptInfo = data
  },
  [types.SET_APPOINT_REG_INFO](state,data){
    state.appointReg = data
  },
  // 当前医院区域信息
  [types.SET_HOSP_AREA_INFO](state,data){
    state.hospAreaInfo = data
  },
  // 当前选中日期信息
  [types.SET_DATE_INFO](state,data){
    state.dateInfo = data
  },
  // 是否自动调用预结算业务
  [types.SET_AUTO_PREAPPOINT_REG_INFO](state,data){
    state.autoPreAppointReg = data
  },
  // 允许选择的时间段
  [types.SET_TIME_RANGE_LIST_INFO](state,data){
    state.timeRangeList = data
  },
  // 选中的时间段
  [types.SET_CURRENT_TIME_RANGE_INFO](state,data){
    state.currTimeRangeInfo = data
  },
  [types.SET_CURRENT_SCHEDULE_INFO](state,data){
    state.currentScheduleInfo = data
  },

};

export default mutations;
